﻿using System;
using System.Diagnostics;

namespace Program12_Process
{
    class Program
    {
        static void Main(string[] args)
        {
            //获取当前程序中正在运行的进程
            //Process[] pros = Process.GetProcesses();
            //foreach(var p in pros)
            //{
            //    Console.WriteLine(p);
            //    //p.Kill(); 别乱来
            //}
            //通过应用程序打开一应用的进程
            //Console.ReadKey();
            //Process.Start("calc");

            //Console.ReadKey();
            ////Process.Start("microsofredge", "https://baidu.com");
            //Process.Start("mspaint");
            //Process.Start("notepad");

            //通过进程打开指定的exe
            //ProcessStartInfo psi = new ProcessStartInfo(@"F:\steambase\steam.exe");
            Console.WriteLine("请按下回车键运行线程");
            Console.ReadKey();
            //UU加速器
            //ProcessStartInfo psi = new ProcessStartInfo(@"F:\UU加速器\Netease\UU\uu.exe");
            //Process p = new Process();
            //p.StartInfo = psi;
            //p.Start();
            //星际
            ProcessStartInfo pi = new ProcessStartInfo(@"F:\steambase\steamapps\common\Warframe\Warframe.x64.exe");
            Process x = new Process();
            x.StartInfo = pi;
            x.Start();
        }
    }
}
